/*
 * LinkedList.h
 *
 *  Created on: Apr 6, 2013
 *      Author: Anthony Varghese
 */

#ifndef LINKEDLIST_H_
#define LINKEDLIST_H_

namespace lab8 {

class LinkedList {
private:
	struct Node{
		short  v1;
		double v2;
		Node*  next;
	};

public:
	LinkedList();
	virtual ~LinkedList();
//	LinkedList(const LinkedList& source);
//	LinkedList& operator =(const LinkedList& rhs);
	void insert(short s, double d);
private:
	Node* first;
	friend ostream& operator<<(ostream& os, const Node& n);
	friend ostream& operator<<(ostream& os, const LinkedList& ls);
};
ostream& operator<<(ostream& os, const LinkedList::Node& n);
ostream& operator<<(ostream& os, const LinkedList& ls);

}
#endif /* LINKEDLIST_H_ */
